package apig.client.serviface;

import java.io.*;

/**
 * 
 * @author evgeniy
 * 
 */
public class UserData implements Serializable {

	public static final int UNKNOWN_ID = -1;

	public static final int USER_INCORRECT = 0;

	public static final int UNKNOWN_ROLE = 0;
	public static final int ROLE_PROF = 1;
	public static final int ROLE_STUD = 2;

	public UserData() {	}

//	public UserData(String sessionId, String name, String surname,
//			String patronimic, boolean logged, int role, int userId,
//			String password, String groupName, int groupId) {
//		this.role = role;
//		this.logged = logged;
//		this.sessionId = sessionId;
//		this.name = name;
//		this.surname = surname;
//		this.patronimic = patronimic;
//		this.userId = userId;
//		this.password = password;
//		this.groupName = groupName;
//		this.groupId = groupId;
//	}

	public int userId;
	public int role;
	public boolean logged;
	public String sessionId;
	public String name;
	public String surname;
	public String patronimic;
	public String password;
	public String groupName;
	public int groupId;
}
